package com.ruige.account;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@MapperScan(basePackages = {"com.ruige.account.mapper"})
public class AccountApplication {

    public static void main(String[] args) {
        SpringApplication.run(AccountApplication.class, args);
    }

//    @Bean
//    public TokenDecode tokenDecode() {
//        return new TokenDecode();
//    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
